package com.lc.my_springframework.beans;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class BookService {
    private final BookRepository bookRepository;

    public String getBookName(String id) {
        return bookRepository.findById(id).getName();
    }
}
